package com.ethink.warehouse.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ethink.warehouse.api.request.LogisticsTraceApplyDetailListRequest;
import com.ethink.warehouse.api.request.LogisticsTraceOrderTypeOrderListRequest;
import com.ethink.warehouse.api.response.LogisticsTraceApplyDetailOrderGetDetailResponse;
import com.ethink.warehouse.api.response.LogisticsTraceOrderNoOrderDetailResponse;
import org.apache.ibatis.annotations.Mapper;
import com.ethink.warehouse.common.entity.LogisticsTraceApplyDetailOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 物流跟进申请明细表 Mapper接口
 *
 * @author default
 * @date 2022-12-15
 */
@Mapper
public interface LogisticsTraceApplyDetailOrderMapper extends BaseMapper<LogisticsTraceApplyDetailOrder> {

    /**
     * 根据物流跟进单号查询列表
     *
     * @param traceOrderNo
     * @return
     */
    List<LogisticsTraceApplyDetailOrderGetDetailResponse> listLogisticsTraceApplyDetailOrderByTraceOrderNo(@Param("traceOrderNo") String traceOrderNo);

    /**
     * 根据物流跟进单号查询列表
     *
     * @return
     */
    List<LogisticsTraceApplyDetailOrderGetDetailResponse> listLogisticsTraceApplyDetailOrder(@Param("request")LogisticsTraceApplyDetailListRequest request);

    List<LogisticsTraceOrderNoOrderDetailResponse> listLogisticsTraceOrderNoOrderDetail(@Param("request") LogisticsTraceOrderTypeOrderListRequest request);
}